package com.hzlx.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user")
public class User {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String headUrl;
    private Integer adminFlag;
    private String password;
    private Integer status;
    private String phone;
    private String username;
    private String account;
    private Integer departmentId;
    @TableField(exist = false)
    private List<Role> roleList; //角色列表
    @TableField(exist = false)
    private List<Permission> permissionList;;//权限列表
    @TableField(exist = false)
    private Department department;//部门
}
